package com.toaa.crazymath;

import android.util.SparseIntArray;

import com.vn.toaa.brainracer.R;


public class Constant {

	public enum GameDifficulty {
		EASY, NORMAL, HARD
	}

	public enum GameMode {
		ADDITION, SUBTRACTION, MULTIPLICATION, DIVISION
	}

	public static final String PREF_FIRST_PLAY = "pref_first_play";
	public static final String PREF_GAME_DIFFICULTY = "pref_game_difficulty";
	public static final String PREF_GAME_MODE = "pref_game_mode";
	public static final String PREF_VOLUME_STATE = "pref_volume_state";
	public static final String PREF_VIBRATE_STATE = "pref_vibrate_state";
	public static final String PREF_BEST_POINT_ADDITION_EASY = "pref_best_point_add_easy";
	public static final String PREF_BEST_POINT_ADDITION_NORMAL = "pref_best_point_add_normal";
	public static final String PREF_BEST_POINT_ADDTION_HARD = "pref_best_point_add_hard";
	public static final String PREF_BEST_POINT_SUBTRACTION_EASY = "pref_best_point_sub_easy";
	public static final String PREF_BEST_POINT_SUBTRACTION_NORMAL = "pref_best_point_sub_normal";
	public static final String PREF_BEST_POINT_SUBTRACTION_HARD = "pref_best_point_sub_hard";
	public static final String PREF_BEST_POINT_MULTI_EASY = "pref_best_point_multi_easy";
	public static final String PREF_BEST_POINT_MULTI_NORMAL = "pref_best_point_multi_normal";
	public static final String PREF_BEST_POINT_MULTI_HARD = "pref_best_point_multi_hard";
	public static final String PREF_BEST_POINT_DIVISION_EASY = "pref_best_point_div_easy";
	public static final String PREF_BEST_POINT_DIVISION_NORMAL = "pref_best_point_div_normal";
	public static final String PREF_BEST_POINT_DIVISION_HARD = "pref_best_point_div_hard";
	
	public static final String FRAGMENT_TAG_PLAY = "fragment_tag_play";
	public static final String FRAGMENT_TAG_MENU = "fragment_tag_menu";

	public static final int[] ADDITION_NUMBER = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
	public static final int[] MULTIPLICATION_NUMBER = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
	public static final int[] SUBTRACTION_NUMBER = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
	public static final int[] DIVISION_NUMBER = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
	
	public static final SparseIntArray THINKING_TIME_MAP = createThinkingMap();
	
	private static SparseIntArray createThinkingMap() {
		SparseIntArray temp = new SparseIntArray();
		temp.put(GameDifficulty.EASY.ordinal(), 3 * 1000);
		temp.put(GameDifficulty.NORMAL.ordinal(), 2 * 1000);
		temp.put(GameDifficulty.HARD.ordinal(), 1 * 1000);
		return temp;
	}

	public static int[] COLORS = { R.color.bg_play_1, R.color.bg_play_2, R.color.bg_play_3, R.color.bg_play_4,
			R.color.bg_play_5, R.color.bg_play_6, R.color.bg_play_7, R.color.bg_play_8, R.color.bg_play_9 };
	
	public static final long TIME_TO_SHOW_ADS = 10 * 60 * 1000;
	public static final String STARTAPP_PUBLISHER_ID = "103223420";
	public static final String STARTAPP_APP_ID = "208354565";

}
